<template>
<div class="goods_card">
  <div class="swiper-wrapper">
    <div class="swiper-slide swiper-slide-visible swiper-slide-active">
      <div class="g-floor ">
        <a href="" class="banner-con brandAdv">
          <img :src="content.image" alt="" class="swiper-lazy">
        </a>
        <div class="middle-con">
          <div v-for="(item, index) in content.series" :key="index">
            <goods-item :key="item.id" :item="item" :banId="item.category_id"  />
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<!-- https://user.qzone.qq.com/2404464672/311/1074_0b5324bg2aactmahsw6pmnpdbvyenxlqe3ka -->
</template>

<script>
import GoodsItem from '@/components/goods-item'
export default {
  name: 'GoodsCard',
  components: {
    GoodsItem
  },
  props: {
    content: {
      type: Object,
      default: () => {}
    },
    img: {
      type: String,
      default: ''
    },
    goods: {
      type: Object,
      default: () => {}
    }
  }
}
</script>
<style lang="scss" scoped>
.swiper-wrapper {
  height: 600px!important;
  position: relative;
  .swiper-slide {
    text-align: center;
    font-size: 18px;
    .g-floor {
      width: 100%;
      .banner-con {
        display: block;
        float: left;
        width: 279px;
        height: 590px;
        background: #fff;
        -webkit-transition: linear .2s;
        -o-transition: linear .2s;
        transition: linear .2s;
        img {
          width: 100%;
          height: 100%;
        }
      }
    }
  }
}
</style>
